import request from '@/utils/request'

// 查询学生担任职务列表
export function dutiesList(query) {
  return request({
    url: '/basic/duties/list',
    method: 'get',
    params: query 
  })
}
// 获取学生担任职务详细信息
export function dutiesInfor(data) {
    return request({
      url: '/basic/duties/' + data,
      method: 'get',
    })
  }
// 新增学生担任职务

export function addDuties(data) {
    return request({
      url: '/basic/duties',
      method: 'post',
      data: data
    })
  }
  // 修改学生担任职务
  export function updataDuties(data) {
    return request({
      url: '/basic/duties',
      method: 'put',
      data: data
    })
  }
  // 删除学生担任职务
export function delDuties(data) {
    return request({
      url: '/basic/duties/' + data,
      method: 'delete',
  
    })
  }